#ifndef USER_H
#define USER_H
#include <QString>

class User
{
public:
    enum NameType {WithPost,FullName, SMName, FIO};
    User(const int&ID,
         const QString&Unit,
         const QString&firstName,
         const QString&secondName,
         const QString&middleName,
         const QString&post,
         const QString&contactInfo);
    int id() const;
    QString unit() const;
    QString name(const NameType&nameType=WithPost) const;
    bool isVisible() const;
private:
    int m_id;
    QString m_unit, mf_name, ms_name, mm_name;
    QString m_post, contact_info;
    bool m_visible;
};
#endif // USER_H
